package com.sugar.queryinfo.module.business.controller.admin.userextend.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 用户余额分配 Request VO")
@Data
public class UserExtendSaveReqVO {

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2964")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2964")
    @NotNull(message = "部门ID不能为空")
    private Long deptId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "2964")
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "类型（0支出 1收入）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "类型不能为空")
    private Boolean type;

    @Schema(description = "变动金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "变动金额不能为空")
    @DecimalMin(value = "0.01", message = "变动金额必须大于 0")
    private BigDecimal amount;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
    private String remark;
}